package com.example.demo_server;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class demoProvider {

    @RequestMapping("/hi")
    public String hi()
    {
        return "say hi from demo server1  ";
    }

    @RequestMapping("/hello")
    public String hello(@RequestParam(name="name") String name)
    {
        return "para: "+ name + " say hello from demo server1  ";
    }

}
